//
//  ViewController.m
//  UIButtonDemo
//
//  Created by Ailix on 15/3/9.
//  Copyright (c) 2015年 Ailix. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@property (strong, nonatomic) IBOutletCollection(UIButton) NSArray *buttons;



@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    [_buttons setValue:@5 forKeyPath:@"layer.cornerRadius"];
//    [_buttons setValue:[UIColor yellowColor] forKey:@"tintColor"];
    [_buttons setValue:[UIColor yellowColor] forKeyPath:@"tintColor"];

    [_buttons setValue:[UIColor blackColor] forKey:@"backgroundColor"];

    
    // Do any additional setup after loading the view, typically from a nib.
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
